import { IDateLineChart, IDatePieChart, IGaugeChart } from "@/types/echart";
import { IBase } from "../base";
/**
 * 原料仓库
 */
export type MaterialStore = IBase

export interface MaterialStoreList {begin:Partial<MaterialStore>,end:Partial<MaterialStore>,in:Partial<MaterialStore>,out:Partial<MaterialStore>}

export interface IWarnInfo{
    chart:Partial<IGaugeChart>,
   /** overstock积压，inventory库存 */
    overstockText:string,
    overstock:number,
    overstockUnit:string,
    inventoryText:string,
    inventory:number,
    inventoryUnit:string
}
export interface WarnInfoList{
    /** overstock积压，inventory库存 */
    one:Partial<IWarnInfo>,
    two:Partial<IWarnInfo>,
    three:Partial<IWarnInfo>,
}
/**
 * 原料仓库
 */
export interface IMaterialStoreFull{
    /** 期末期初 入库 出库 */
    materialStoreList:MaterialStoreList;
    /** 运输成本 */
    materialPie:Partial<IDatePieChart>,
    /** 原料 */
    coalPie:Partial<IDatePieChart>,
     /** 库存趋势 */
    tendencyLine:Partial<IDateLineChart>,
    /** 库存预警 */
    wranInfo:WarnInfoList
}
/**
 * 物资仓库
 */
export type IGoodStoreFull = Omit<IMaterialStoreFull,'wranInfo'|'coalPie'> & { overstockGauge:Partial<IGaugeChart>,   wranInfo: Partial<IDateLineChart> }

/**
 * 物资仓库
 */
 export type IProductStoreFull = Omit<IMaterialStoreFull,'coalPie'> & { product:Partial<IDatePieChart> }
